<!-- ================== 必须加载的JS START ================== -->
<script src="__PUBLIC__/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
<script src="__PUBLIC__/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
<script src="__PUBLIC__/assets/plugins/jquery-ui/ui/minified/jquery-ui.min.js"></script>
<script src="__PUBLIC__/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="__PLUGINS__/layui/layui.js"></script>
<script type="text/javascript" src="__PLUGINS__/vue/vue.js"></script>
<!-- ================== 必须加载的JS END ================== -->

<!--按钮选择插件 START-->
<script src="__PUBLIC__/assets/plugins/switchery/switchery.min.js"></script>
<script src="__PUBLIC__/assets/plugins/powerange/powerange.min.js"></script>
<script src="__PUBLIC__/assets/js/form-slider-switcher.demo.min.js"></script>
<!--按钮选择插件 end-->

<!--初始化加载的js文件-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('admin');
</script>
<script src="__PUBLIC__/assets/js/apps.min.js"></script>
<script>
    $(document).ready(function() {
        App.init();
        //按钮状态 选择初始化
        FormSliderSwitcher.init();
    });
</script>
<!--初始化加载的js文件 END-->


<!-- ================== 其他应用的JS START ================== -->
{if condition="$Request.controller == 'Setting'"}
<!--加载设置模块-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('userinfo');
</script>
{/if}
{if condition="$Request.controller == 'Email' && $Request.action == 'index'"}
<!--加载邮箱设置模块-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('email_conf');
</script>
{/if}
{if condition="$Request.controller == 'Email' && $Request.action == 'mailbox'"}
<!--加载邮箱设置模块-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('mailbox');
</script>
{/if}

<!--邮箱模板列表加载表单插件-->
{if condition="($Request.controller == 'Email' && $Request.action == 'mailbox_list')
|| ($Request.controller == 'Note' && $Request.action == 'note_list')
|| ($Request.controller == 'Excel' && $Request.action == 'excel_list')
"
}
<!--表单插件 START-->
<script src="__PLUGINS__/js/form_del_data.js"></script>
<script src="__PUBLIC__/assets/plugins/DataTables/js/jquery.dataTables.js"></script>
<script src="__PUBLIC__/assets/plugins/DataTables/js/dataTables.responsive.js"></script>
<script src="__PUBLIC__/assets/js/table-manage-responsive.demo.min.js"></script>
<!--表单插件 END-->
<script>
    $(document).ready(function() {
        //初始化表单插件
        TableManageResponsive.init();
    });
</script>
{/if}

{if condition="$Request.controller == 'Note' && $Request.action == 'index'"}
<!--加载短信设置模块-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('note_index');
</script>
{elseif condition="$Request.controller == 'Note' && $Request.action == 'note_display'"}
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('note_display');
</script>
{/if}


{if condition="$Request.controller == 'Excel' && $Request.action == 'index'"}
<!--加载Eexcl应用模块-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('excel_index');
</script>
{/if}

{if condition="$Request.controller == 'Qrcodes'"}
<!--加载QRcode二维码-->
<script>
    layui.config({
        base: '__PLUGINS__/src/modules/'
    }).use('qr_code');
</script>
{/if}
<!-- ================== 其他应用的JS END ================== -->
</body>
</html>